package com.ccp.dev.qbdms.dao;

import com.ccp.dev.core.basic.base.IBaseMapper;
import com.ccp.dev.qbdms.model.WQbdQualityKnow;
import com.ccp.dev.qbdms.model.WQbdSoftwareproAnls;
import org.apache.ibatis.annotations.Mapper;
import com.ccp.dev.core.basic.web.query.QueryFilter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 质量知识 信息数据库操作类
 *
 * @author 于金
 * @date 2020-07-20 10:41:54
 */
@Mapper
public interface WQbdQualityKnowDao extends IBaseMapper<WQbdQualityKnow,String> {

    List<WQbdQualityKnow> queryAll(QueryFilter queryFilter);

    WQbdQualityKnow getLastUpdateTime();

    List<String> getWords();

    /**
     * 查询未读数据
     * @param queryFilter
     * @return
     */
    List<WQbdQualityKnow> queryUnread(QueryFilter queryFilter);

    WQbdSoftwareproAnls getParentAndChilden(String id);

    List<WQbdQualityKnow> queryByCollectionList(QueryFilter queryFilter);


    WQbdQualityKnow getOneByOldId(@Param("id") String id,@Param("orgCode") String orgCode);

    int delByOldId(String oldId,String orgCode);
}
